export interface IResponse {
  title: string
  subTitle: string
  cardType: 'blue' | 'yellow' | 'red' | 'gray' | 'none'
  status: string
  list: {
    label: string
    value: string
    type: 'default' | 'price'
  }[]
}

const EStatus = {
  blue: [10, 20, 30],
  gray: [40, 60],
}

export function getStatus(value: number): string | undefined {
  for (const key in EStatus) {
    if (EStatus.hasOwnProperty(key)) {
      if (EStatus[key].includes(value)) {
        return key
      }
    }
  }
  return undefined
}
